//
//  ZBMoBanThree.m
//  MoBan
//
//  Created by apple on 16/7/9.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZBMoBanThree.h"

@implementation ZBMoBanThree
+(NSInteger)ZBTableviewCellCountAtSection:(NSInteger)section WithArray:(NSMutableArray *)array;
{
    if (section<3 ) {
        return 1;
    }
    
    NSMutableArray *mutablearray = array[section];
    return mutablearray.count;
}
+(NSInteger)ZBtableviewFotterViewHightAtSection:(NSInteger)section WithArray:(NSMutableArray *)array;
{
    

    if (section==0||section==1) {
        NSMutableArray *array1 = array[section];

        if (array1.count>0) {
            return 20*Kscr;
        }
        else
        {
            return 0;
        }
    }    
    
    if (section==2) {
        return 40*Kscr;
    }
    return 0;
}
+(CGFloat)ZBtableviewCellHightAtSection:(NSInteger)section WithArray:(NSMutableArray *)array
{

    NSMutableArray *muarray = array[section];
    
    if (section==0) {
        if (muarray.count<=4&&muarray.count>0) {
            return firstSmallCellH;
        }else if(muarray.count>4)
        {
            return firstSmallCellH*2;
        }else if (muarray.count==0)
        {
            return 0;
        }
    }else if (section==1)
    {
        if (muarray.count>0) {
            return secondCellH;
        }
        else{
            return 0;
        }
    
    }else if (section==2)
    {
        if (muarray.count<=2&&muarray.count>0) {
            return thirdSmallCellH;
        }else if (muarray.count>2)
        {
            return thirdSmallCellH*2;
        }else if (muarray.count==0)
        {
            return 0;
        }
    }
    return 60*Kscr;//此处为最下面的cell的高度
}
+(NSString *)ZBCellIndentfireInsection:(NSInteger)section
{
    if (section==0) {
        return FirstCell;
    }else if (section==1)
    {
        return SecondCell;
    }else if (section==2)
    {
        return ThreeCell;
    }
    return nil;
}
@end
